package com.spark.server.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/server/api")
public class ApiController {

    @RequestMapping("/say/{name}")
    public String say(@PathVariable("name") String name) {
        return "Hello," + name + "!";
    }
}
